<?php
namespace app\index\validate;
use think\Validate;
class Code extends Validate
{
    protected $rule = [
        'code' => 'require|alphaNum|min:8|max:14',
        'price' => 'number|between:1,100',
        'email' => 'email',
    ];

     protected $message = [
         'code.require' =>'条码不能为空',
     ];

}
